<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>are you here?</title>
    <link rel="stylesheet" href="layui/css/layui.css"  th:href="@{/layui/css/layui.css}">

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头部导航-->
    <header class="layui-header layui-bg-black">
        <div class="layui-logo layui-bg-green">
            <span>ARE YOU HRER ?</span>
        </div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-notice"></i>
                </a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <cite>admin</cite>
                    <span class="layui-nav-more"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="personalInfo.html">基本资料</a></dd>
                    <dd><a>退出</a></dd>
                </dl>
            </li>
        </ul>
    </header>
    <!--侧边菜单-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item">
                    <a href="javascript:;" onclick="load('/html/dataView')">
                        <i class="layui-icon layui-icon-home"></i>
                        <cite>首页</cite>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a  href="javascript:;" onclick="load('/html/student')">
                        <i class="layui-icon layui-icon-username"></i>
                        <cite>学生管理</cite>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a  href="javascript:;" onclick="load('/html/teacher')">
                        <i class="layui-icon layui-icon-username"></i>
                        <cite>教师管理</cite>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a  href="javascript:;" onclick="load('/html/class')">
                        <i class="layui-icon layui-icon-user"></i>
                        <cite>班级管理</cite>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a  href="javascript:;" onclick="load('/html/activity')">
                        <i class="layui-icon layui-icon-form"></i>
                        <cite>签到管理</cite>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a  href="javascript:;" onclick="load('/html/course')">
                        <i class="layui-icon layui-icon-read"></i>
                        <cite>课程管理</cite>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <!--内容主体-->
    <main class="layui-body layui-bg-gray" id="layui-body">
        这是主页
    </main>
    <!--底部声明-->
    <footer class="layui-footer">
        <span>copyright © 攻坚小组 2019 reserved.</span>
    </footer>
</div>

<!-- 导入时的提示层 -->
<script type="text/html" id="uploadFileLayer">
        <div>
            正在添加中......
        </div>
</script>

<!--javascript脚本-->
<script src="layui/layui.js" th:src="@{/layui/layui.js}"></script>
<script src="layui/lay/modules/jquery.js" th:src="@{/layui/lay/modules/jquery.js}"></script>-->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

<script>
    layui.use(['element', 'table'], function () {
        var element = layui.element
            , table = layui.table;
    })
    function load(url) {
        console.log(url)

        $("#layui-body").load(url)
        try {
            window.clearInterval(timer)
            window.clearTimeout(timeout)
        }catch (e) {
            
        }
    }

    window.onload=function (ev) {
        $("#layui-body").load("/html/dataView")
        $("#layui-body").load("/html/dataView")
    }

</script>
</body>
</html>